package com.neutech.neuski.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.neutech.neuski.service.SkiService;
import com.neutech.po.Ski;

@RestController
@RequestMapping("/his/ski")
public class SkiController {
	@Autowired
	private SkiService skiService;
	//查询
	@RequestMapping(value="/inquireSki",method=RequestMethod.POST)
	public Ski inquireDoc(Integer id){
		Ski ski=skiService.inquireSki(id);
		return ski;
	}
	//增加
	@RequestMapping(value="/increaseSki",method=RequestMethod.POST)
	public Ski increaseski(Ski ski){
		ski=skiService.increaseSki(ski);
		return ski;
	}
	//删除
	@RequestMapping(value="/deleteDoc",method=RequestMethod.POST)
	public Ski deleteSki(Ski ski){
		ski=skiService.deleteSki(ski);
		return ski;
	}
	//修改
	@RequestMapping(value="/updateDoc",method=RequestMethod.POST)
	public Ski updateDoc(Ski ski){
		ski=skiService.updateSki(ski);
		return ski;
	}
}
